package com.example.ItPhotoAlbumCloud.Service;
import com.example.ItPhotoAlbumCloud.utils.CommonResult;
import com.alibaba.fastjson.JSONObject;

import javax.mail.MessagingException;

/**
 * 云相册用户业务接口
 * 小仙 创建人 2023-03-11 14:36:11
 */
public interface ItPhotoAlbumCloudUserService {

    /**
     * 注册
     * @param request = {all in params by ItPhotoAlbumCloudUserDTO, ...}
     * return true or false
     */
    CommonResult create(JSONObject request);

    /**
     * 修改
     * @param request = {all in params by ItPhotoAlbumCloudUserDTO, ...}
     * return true or false
     */
    CommonResult modify(JSONObject request);

    /**
     * 分页查询
     * @param request = {all in params by Pagination, all in params by ItPhotoAlbumCloudUserDTO, ...}
     * return 结果与分页信息
     */
    CommonResult pageQuery(JSONObject request);

    /**
     * 登录根据Email,查询
     * @param request = {id: $id, ...}
     * return 结果DO对象
     */
    CommonResult queryByEmail(JSONObject request);

    CommonResult sendHtmlEmail(JSONObject request);

}

